
 /*获取url参数的方法*/
function GetQueryString(name){
      var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
      var r = window.location.search.substr(1).match(reg);
//    if(r!=null)return  unescape(r[2]); return null;
	  if(r!=null)return  decodeURIComponent(r[2]); return null;
 };
 
$(function(){
	console.log(window.location.pathname)
	switch(window.location.pathname){
		case '/list':
		case '/detail':
			var t=GetQueryString('CatalogType');
			$("#"+t).addClass('layui-this');
			break;
		case '':
		case '/':
		case '/home':
			$("#home").addClass('layui-this');
			break;
		case '/about':
		    $("#about").addClass('layui-this');
		    break;
	}
})

/*配置项*/
CONFIG={
//	frontBaseUrl:'http://192.168.18.185:8080/THCMS/'
	frontBaseUrl:'http://61.181.255.77:17351/THCMS/'
}
